package com.ccxyz.nacos.quickstart.controller;

import com.ccxyz.nacos.quickstart.feign.TestFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * </p>
 *
 * @author 暮雨清风
 * @date 2022/1/27 15:02
 * @since 1.0.0
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestFeign testFeign;
    @GetMapping("/testConfig")
    public String testConfig(){
        return "测试OK";
    }

    @GetMapping("/test")
    public String test(){
        return testFeign.testConfig();
    }
}
